package com.common.config;

/**
 * @description:
 * @author：nihongyu
 * @date: 2023/7/19
 */

public class CaffeineEntity {

    private String cacheName;

    private Integer initSize ;
    private Integer maxSize ;

    //下面是caffeine过期时间设置
    private Long expireAfterWrite ;
    private Long expireAfterAccess;
    //    private Long refreshAfterWrite;
    //redis 过期时间
    private Long redisExpire;


    public String getCacheName() {
        return cacheName;
    }

    public void setCacheName(String cacheName) {
        this.cacheName = cacheName;
    }

    public Integer getInitSize() {
        return initSize;
    }

    public void setInitSize(Integer initSize) {
        this.initSize = initSize;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }

    public Long getExpireAfterWrite() {
        return expireAfterWrite;
    }

    public void setExpireAfterWrite(Long expireAfterWrite) {
        this.expireAfterWrite = expireAfterWrite;
    }

    public Long getExpireAfterAccess() {
        return expireAfterAccess;
    }

    public void setExpireAfterAccess(Long expireAfterAccess) {
        this.expireAfterAccess = expireAfterAccess;
    }

    public Long getRedisExpire() {
        return redisExpire;
    }

    public void setRedisExpire(Long redisExpire) {
        this.redisExpire = redisExpire;
    }
}
